// stdafx.cpp : source file that includes just the standard includes
//	EBASApp.pch will be the pre-compiled header
//	stdafx.obj will contain the pre-compiled type information

#pragma warning(disable:4146)
#pragma warning(disable:4786)
#pragma warning(disable:4541)

#include "stdafx.h"
#include <comutil.h>

char* bstrtocstr(BSTR b)
{
	char* szTo = (char*)malloc(_bstr_t(b).length() +1);
	strcpy(szTo, (char*)_bstr_t(b));
	return szTo;
}

CTime StringToTime( CString & lpzString )
{
	CString day, month;
	day = lpzString.Mid(0, 2);
	month = lpzString.Mid(3, 2);

	CTime t( atoi( lpzString.Right(4) ) , atoi(month),
		atoi(day) , 0 , 0 , 0 );

	return t;
}
	#ifdef _ATL_STATIC_REGISTRY
#include <statreg.h>
#endif
#include <atlimpl.cpp>

